reading img file directly with node