Auto-adjust photo height based on window height