PHP: Handle uploads and thumbnailing, easy to mount on a doctrine model