Fixed resizeToFill to work correctly