Fix to image resolution and fix target ID bug