Added getimage, deletimage, fixed some pep8