added try catch and switched to old resize (fb)