added support for image preview through modals