Minor bug fixes for input type image.