changed loading images to use function for creating opaque surface