fixed import wit Picamera, and image conversion