drawRect should receive Layer not ImageLayer