Fixed: using the IMAGES_TABLE constant instead of hard coding the table name