Proper use of drawRect