added cropping input picture by 5 pixels on each side due to black pixels