update bitmap handling
fixed image reading and gallery image size