[bugfix] fixes where project ID instead of image ID is passed to Gallery view