Fixing alignment and changing waitKey to sleep