add image methods
remove some dependencies