This code is correct - that's how you declare that a call depends on an Image or ImageParam.