Remove unnecessary temporary variable "frame_size" from