Fixes wrong resizing calculation for EditableImage::fitIn()