Streamlined and cleaned up the image attributes API