Cleaned up mtpaint mod