Add trimming of image