Photo management for Symfony2