add trait for images, close #21