add offsetX and Y for mask