Updated setLens method in perspective camera