Sort out images