Fixed bug when image is a path and not a key.
Bug in image handling.