fixing bug when its executed inside of images folder