Refactored watermark function and added a resize function