image resize and input completed, closes #27, closes #31