Basic image modes implemented
Added more accurate image scaling