added .attributes() function to return Image attributes