Refactor imagemap functions

The function names are less ambiguous, and I've reduced the number
of parameters for certain functions (instead storing the current & last
page numbers as variables in the map object). The save &
convertToBase64 methods still need to be refactored.