got drawing with pen to work
fixed drawmode image selection bug