Applying a simple mask to an image