Resizing backgrounds on upload. Size of top_line and bottom_line increased to 255 chars. Code comments and polishing.