chdir so images are downloaded to app directory