fixed android camera and gallery functions in canvas