def load_frames(self):
		self.frames = []
		i = 0
		while os.path.isfile(self.folder + str(i) + '.bmp'):
			try:
				bmp = pygame.image.load(self.folder + str(i) + '.bmp')
			except Exception:
				print('Error loading ' + str(i) + '.bmp from ' + self.folder)
				raise
			pixel_array = pygame.PixelArray(bmp)