manage image bdata differently
more memory management