Resize image before binding if option is correctly set.