Move image data to its own table