injecting extra image fields to massmedia.Image and automatically handling generation and deletion