Fixed bug with adding of images