The object oriented php code for masking the image using a mask image or vig.