Fix inverted image-ratio values in options.onUpdate function