image in rest made as array