poster downloading code refactored