Changed some hardcoded variables to image constants.
Fixed redrawing of popover when device rotated.