Added the ability to add/remove image attributes.