[FIX] black lines on the image edge

previous fix caused unwanted cropping