added attribute block parsing to the end of images