subimage cut function for artificial dataset size increase