added a file filter + changed placement of OnPaint() calls

OnPaint() and OnPaint2() produced an error if they didn't have a
selected picture, and you didn't select one when prompted.