fix #4 convert images/variants has and belongs to many relationship to has many through