Image dialog scroll bar not working correctly