Added resize to image class