Added validation for album image
Fixed flake8 issues