##
my $mode = shift;
my $frames = shift;
my $lossy = shift;
my $skip = shift;
my @bitmap = <>;
##
##
foreach $item (@bitmap)
{
chomp($item);
$total.=$item;
}
@image=split(//,"$total");
##
##
chomp @bitmap;
@image = split //, join '', @bitmap;
##
##
$col=$c;
$row=$thisRow;
##
##
# If you don't want to use this optimization, just
# comment out the whole if statement.