Define mask size using pixels dimensions