Maintain aspect ratio and editable borders