Added support for images with insets