Refactored image_scheme