added some small utils to image