drop photos table, change table to images table