cutting square bug causing black stripe at the top of an image