Allows the use of jpg files as a mask image