Set source rectangle when surface created