x_mean and y_mean isNaN check

should fix the new user drawImage location issue