memory optimizations for ImagePicture