added image uploading/serving
Fixed limit and offset not converted to int