Add convenience method for drawing rect with context provided.