BL-482: Image dialog scroll bar not working correctly