update image handling -- remove path attribute from image objects