bitmap memory issues solved