fixed issue when using image feature

Issue was in image resize algorithm…it wasn't well tested :P