public int getFrame() {
		int frame = this.getFrameIndex();
		if(!looped && frame >= frames.length) {
			this.stop();
			return frames[frames.length -1];
		}else{
			return frames[frame%frames.length];
		}
	}