adding a factory for pictures