double click event not working in the static image panel, had to replace action listener with mouselistener, a little more complex but now we can detect single vs double clicks. When the user double clicks, then we will write as opposed to stream.