remove image factory test duplication
be just a little smarter about namespaces
add FOSRestBundle