inplentation play
with pathname
malloc to new and free to delete[]
test with photo