Make the imagelistener code compile