Image manipulation program written in python