Fix level detection, ability population, dragout image update bugs

Bugs described here: http://projectpokemon.org/forums/showthread.php?44171-Some-Bug

and here: http://projectpokemon.org/forums/showthread.php?44169-BUGS