OOPS, this function is neither pythonic nor OO. Since you want to create a class for image, why not just considering these arguments as the property of this class?