Now generates metadata images and pushes the sizes back in to the db