crop input photo for better result