Fix upimage syncing
Test category and image updating and fix bugs