Fast insertion of new images into the db