Handles file extension itself and adds method for returning new resource name