Fix path issue

grab image resolution from original image not preprocessed image.
(should be the same).