Removing the empty images'