Changed windowWidth windowHeight imageWidth imageHeight to
m_windowWidth m_windowHeight m_imageWidth m_imageHeight

and added functions to change them.