Added the ability to create fragments from images