Resizing image with sample instructions