Script to split images in 3 and clean them up