Changes to python library for image  -1