Revert change to granularize the image mask