cropping images of posts to optimize line detection algorithm