returning to original drawing method. Using surfaceholder is probably much too difficult. Code is still there, but the activity is not used. I think the way to solve the masking problem is to draw the masked image in another imageview overlayed on the previous ones.