Parametrize image recreation function - preparation for linux-lts usage in monolith