render to texture returns dark image

hi guys
i ran into a problem , im writing a script and it has a render to clipboard feture
but when i load the image in photoshop it becomes very dark , how ever if i click on the "copy image" in the frame buffer and paste into photoshop it looks fine...just smaller then what i need .

dose anyone know how to fix this ?

happens in mental ray and scanline
im using 3dsmax 2011

this is the code im using:

max quick render
local bm1 = getlastrenderedimage copy:true
retcode = setclipboardbitmap bm1