Inserted image elements as dom so the data is never uncached
cleaned up issues with code
version up