cleanup of functions for getting graphic source (bitmap and position)