changed translation method to modify psd instead of sample