Images generation DRY