Refactoring allows me to download picture now

Please enter the commit message for your changes. Lines starting