there is a block build into concrete5 called "slideshow". it offers the functionality you need.
go to concrete/blocks/slideshow and have a look how the image adding is done there. simply transfer that approach into your custom block and you should be fine :-)
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.