added resizing on images