inserting photos to mongodb in byte[] format