fixed for passing image ID

Fixed the passing image ID