Added image reading writing feature instead of raw bytes