Fixed small bugs in adapting different pin images.