def splitImageFrames(image_in):
	"""Splits an image (or multiple images as a list) to its different frames, and returns a list containing the images.
	"""
	# Determine if images in are a list or a single image
	if isinstance(image_in, list):
		full_images = []
		# Iterate through images, creating a sublist of frames for each image
		for image in image_in:
			split_image = [None]*image.n_frames
			# Iterate through frames and copy each frame independently, converting to RGB
			for i in range(image.n_frames):
				image.seek(i)
				split_image[i] = image.copy()
			full_images.append(split_image)
		return(full_images)
	else:
		split_image = [None]*image_in.n_frames
		# Iterate through frames and copy each frame independently, converting to RGB
		for i in range(image_in.n_frames):
			image_in.seek(i)
			split_image[i] = image_in.copy()
		return(split_image)