Image viewer, compiler warnings fixed