fixed max function of image class

max() function can take the other argument as an image or a number and returns the max of self and other.
Even if we passed other as an integer, the function tried to call the bitmap of other which caused an error.