- proper image encoding