Fixed image size constraint depending on selected image