Completed gallery implementation.