fix limited range for picture viewer, OpenGL part only