Get background image dimensions using .height and .naturalWidth methods and use them in styles panel.