adding image resource handle to python interface