- properly implemented resizing of overlay according to size option
added download action for barcodes codes