Read the image input and save pixel nodes in DB