Made insertion of images a bit safer