Image path fix and automatic plugin path detection