Speed up get_image()