Implement aspect ratio functionality