initial commit; dirty but working version, without img placeholder and filetype check