render img after sorting canvas