use imageStruct methods rather than our own
use refresh_buffer() helperfun
return true if buffer has been allocated properly
check whether data exists before trying to set it
use proper object-methods for callbacks
hmm, unable to reproduce this with the values you gave. which svn commit are you...