use id generated from path - refactor read folder method and use readdir - add image scale (still TODO)