Function getImageStyleFromOptions