Allow source to be set after layer construction