fixed generic_images crash