I have the following function where the avatar the user has uploaded get\'s converted in two versions (smaller and larger version). Instead of writing this function multiple